﻿@model TopicClientModel

<h2>@ViewBag.Title</h2>
@{
    var returnUrl = Model.isNew() ? "/topic/thread/": "/user/topic";
}

<div id="divTopic-j">
    <div><input data-bind="value: title, valueUpdate: 'afterkeydown'" /></div>
    <div><input data-bind="value: subTitle, valueUpdate: 'afterkeydown'" /></div>
    <div><textarea data-bind="kindEditorValue: content"></textarea></div>
    <div><button data-bind='enable: isOperationValid, click: save ' >@LocaleResources["App.Save"]</button></div>
</div>
@{
ScriptRegister.AddKnockOutBinding("topic", "#divTopic-j");
}

